package messages;


/**
 * Register message
 * 
 * The register message is sent by the client to register a new player.
 * This message is not handled by a correspondent Command. Instead,
 * the Controller handles it through its register() method.
 */
public class RegisterMessage extends Message {
	private static final long serialVersionUID = 1L;
	
	public RegisterMessage(String login, String password) {
		super();
		
		this.login = login;
		this.password = password;
	}
	
	public String getLogin() {
		return this.login;
	}
	
	public String getPassword() {
		return this.password;
	}
	
	@Override
	public String toString() {
		return super.toString() + " Register (" + this.login + ") " + this.password;
	}
	
	private String login;	 // Requested login
	private String password; // Requested password
}
